package com.cgwx.tcservice.config;

import io.swagger.annotations.Api;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author GaoWei
 * @Date 2023/8/9 - 16:38
 */

@PropertySource("classpath:port-config.properties")
@Component
@Data
@ToString
@NoArgsConstructor
@Api(tags = "CAN路端口配置类")
public class CanPortConfig {

//    CAN路发送设备IP
    @Value("${can.sendingIP}")
    private String sendingIP;
//    CAN路发送UDP端口
    @Value("${can.sendingPort}")
    private Integer sendingPort;
}
